//
//  ViewController.m
//  KVO_TEST
//
//  Created by QDSG on 2019/5/24.
//  Copyright © 2019 unitTao. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSLog(@"view did load");
    
    NSNotificationQueue *queue = [[NSNotificationQueue alloc] initWithNotificationCenter: [NSNotificationCenter defaultCenter]];
    NSNotification *notify = [[NSNotification alloc] initWithName:@"TestNotification" object:nil userInfo:nil];
    [queue enqueueNotification:notify postingStyle:NSPostASAP];
}

- (void)handleNotification:(NSNotification *)noti {
    NSLog(@"TestNotification");
}


@end
